{template 'common/header'}
<ul class="nav nav-tabs">
    <li><a href="{php echo url('sms/finance/list');}">库款划拨信息列表</a></li>
    <li><a href="{php echo url('sms/finance/post');}">增加库款划拨信息</a></li>
    <li class="active"><a href="{php echo url('sms/finance/disp');}">查看库款划拨信息</a></li>
</ul>
<div class="clearfix">
    <form action="" method="post" class="form-horizontal" role="form" enctype="multipart/form-data" id="form1">
        <input type="hidden" name="id" value="{$id}">

        <div class="panel panel-default">
            <div class="panel-heading">
                查看
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">机关代字</label>

                    <div class="col-sm-6">
                        <input type="text" name="agency" class="form-control" value="{$row['agency']}" disabled="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">年份</label>

                    <div class="col-sm-6">
                        <input type="text" name="fileyear" class="form-control" value="{$row['fileyear']}"
                               disabled="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">文号</label>

                    <div class="col-sm-6">
                        <input type="text" name="fileid" class="form-control" value="{$row['fileid']}" disabled="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">总金额</label>

                    <div class="col-sm-6">
                        <input type="text" name="totalmoney" class="form-control" value="{$row['totalmoney']}"
                               disabled="true"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">已拨金额</label>

                    <div class="col-sm-6">
                        <input type="text" name="money" class="form-control" value="{$row['money']}"
                               readonly="readonly"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">文件首页</label>

                    <div class="col-sm-6" style="margin-top:.5em;">
                        <img src="{$_W['attachurl']}{$row['thumb']}" class="img-responsive img-thumbnail"/>
                    </div>
                </div>
                {if $row['num']>0}
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">历史划拨记录</label>
                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <td style="width: 40px;">上次余额</td>
                                <th style="width:40px;">已拨金额</th>
                                <th style="width:40px;">剩余金额</th>
                                <th style="width: 40px;">创建人</th>
                                <th style="width: 40px;">拨款日期</th>
                            </tr>
                            </thead>
                            <tbody>
                            {loop $list $row}
                            <tr>
                                <td>{$row['lastmoney']}</td>
                                <td>{$row['money']}</td>
                                <td>{$row['remain']}</td>
                                <td>{$row['creator']}</td>
                                <td>{php echo date('Y-m-d', $row['createtime'])}</td>
                            </tr>
                            {/loop}
                            </tbody>
                        </table>
                    </div>
                </div>
                {/if}
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">签名页</label>

                    <div class="col-sm-6" style="margin-top:.5em;">
                        <img src="{$_W['attachurl']}{$item['signpage']}" class="img-responsive img-thumbnail"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">本次划拨金额</label>

                    <div class="col-sm-6">
                        <input type="text" name="money" class="form-control" value="{$item['money']}" disabled="true"/>
                    </div>
                </div>
            </div>
        </div>

    </form>
</div>
{template 'common/footer'}